import request from "@/utils/request";

// 获取员工管理列表
export function tenantUserList(query) {
    return request({
        url: "/pekingFish/tenant-user/page",
        method: "get",
        params: query,
    });
}
// 新增员工信息
export function addTenantUser(data) {
    return request({
        url: "/pekingFish/tenant-user",
        method: "post",
        data: data,
    });
}
export function getService(phone) {
  return request({
    url: '/pekingFish/tenant-user/getService?phone=' + phone,
    method: 'get'
  })
}
// 更新员工信息
export function updateTenantUser(data) {
    return request({
        url: "/pekingFish/tenant-user",
        method: "put",
        data: data,
    });
}

// 导出员工信息
export function exportTenantUser(data) {
    return request({
        url: '/pekingFish/tenant-user/export',
        method: 'post',
        data: data,
        responseType: 'blob',
    })
}

// 导入员工信息
export function importTenantUser(data) {
    return request({
        url: '/pekingFish/tenant-user/import',
        method: 'post',
        data: data,
    })
}

// 导入模板
export function importTenantUserTemplate(query) {
    return request({
        url: '/pekingFish/tenant-user/get-import-template',
        method: 'get',
        params: query,
        responseType: 'blob'
    })
}
